public class Date {
    public int year;
    public int month;
    public int day;

    public Date() {
        this(2008);
        System.out.println("打印了不带有参数的构造方法");

    }

    public Date(int year) {
        this.year = year;
        System.out.println("打印了带有一个参数的构造方法");
    }
    
    public Date(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public static void main(String[] args) {
        Date date = new Date();

    }
}
